<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCostLogsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('cost_logs', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('cid')->nullable()->comment('客户id');
            $table->integer('oid')->nullable()->comment('订单id');
            $table->string('OrderCode')->nullable()->comment('订单编号');
            $table->integer('costTypeId')->nullable()->comment('支付方式id');
            $table->string('costType')->nullable()->comment('支付方式');
            $table->float('cost',11,2)->nullable()->comment('余额');
            $table->string('other1')->nullable()->comment('其他信息');
            $table->string('other2')->nullable()->comment('其他信息');
            $table->string('other3')->nullable()->comment('其他信息');
            $table->string('other4')->nullable()->comment('其他信息');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('cost_logs');
    }
}
